from django.urls import path

from server.apps.todo.views import create, index, list_jobs, create_job, list_one, list_one_job, edit, edit_job_by_id, done, done_job_by_id, delete, delete_job_by_id, find, find_job

app_name = 'todo'

urlpatterns = [
    path('create', create, name='create'),
    path('', index, name='list'),
    path('list_all', list_jobs, name='list_all'),
    path('index', index, name='index'),
    path('create_job', create_job, name='create_job'),
    path('list_one', list_one, name='list_one'),
    path('list_one_job', list_one_job, name='list_one_job'),
    path('edit', edit, name='edit'),
    path('edit_job', edit_job_by_id, name='edit_job'),
    path('done', done, name='done'),
    path('done_job', done_job_by_id, name='done_job'),
    path('delete', delete, name='delete'),
    path('delete_job', delete_job_by_id, name='delete_job'),
    path('find', find, name='find'),
    path('find_job', find_job, name='find_job'),
]
